package com.program.facesigninsystem.dao;

import com.program.facesigninsystem.entity.CourseOrganization;
import com.program.facesigninsystem.entity.SuperiorsOrganization;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ICourseOrganizationDao {
    void addNewCO(
            @Param("oid") String oid,
            @Param("ccid") String ccid,
            @Param("application_status") Integer application_status,
            @Param("createtime") String createtime

    );

    //申请被驳回
    void updateapplystates3(
            @Param("coid") String coid
    );

    void updateapplystates2(
            @Param("coid") String coid
    );

    void updateapplystates4(
            @Param("coid") String coid
    );

    CourseOrganization selectapplyhistory(
            @Param("oid") String oid,
            @Param("ccid") String ccid
    );

    List<CourseOrganization> selectapplyhistory1(
            @Param("oid") String oid
    );

    List<CourseOrganization> selectbind(
            @Param("oid") String oid
    );

    List<CourseOrganization> selectbindbycname(
            @Param("oid") String oid,
            @Param("name") String name
    );

    List<CourseOrganization> selectsup(
            @Param("ccid") String ccid
    );

    void deletebyccid(
            @Param("ccid") String ccid
    );
}
